package com.yt.lxh.common.exception;

import com.yt.lxh.common.result.ResultCodeEnum;
import lombok.Getter;

/**
 * 用户名重复的异常
 */
@Getter
public class UsernameDuplicateException extends ServiceException{
    private String message;
    public UsernameDuplicateException(ResultCodeEnum errCode) {
        super(errCode);
    }

    public UsernameDuplicateException(ResultCodeEnum errCode, String message) {
        super(errCode);
        this.message = message;
    }

}
